<template>
  <div v-show="ishow" >
    <div class="p_Blankpages" v-if="list.length <= 0" >
        <div class="p_Blankpages2" style="display:block">
            <div class="p_blank_ico">
              <img src="https://jzcdn.jzdoctor.com/notdata.png" style="width:30%;margin:0 auto">
            </div>
            <div class="p_blank_hist">暂无品牌</div>
        </div>
    </div>
    <ul v-else>
      <li class="change-list"  v-for="(item,index) in list" v-if="item.enabled" >
        <div class="change-base">
          <div class="base-img" v-if="item.faceUrl"><img :src="item.faceUrl"></div>
          <div class="base-info">
            <div class="base-name">
              <div class="nametext">{{item.name}}</div>
            </div>
            <!-- <div class="base-sku">升级版-花灰色,M</div> -->
            <div class="base-pri">
              <div class="base-pridis">
              	<div v-if="item.discount"><span class="font">折</span>{{item.discount}}</div>
              	<div v-if="item.present"><span class="font" style="background: rgb(255, 102, 51);">送</span>{{item.present}}</div>
              </div>
              <router-link  tag="div" class="base-pribtn"  :to="'/active/buypay/'+ item.id" >买单</router-link>
            </div>
          </div>
        </div>
      </li>
    </ul>
    <div style="height:2.25rem"></div>
    <router-link  tag="div" class="order-href" :to="'/active/orderlist'" v-show="iswx">买单记录</router-link>
  </div>
</template>
<script>
  import Vue from 'vue'
  // import Lockr from 'lockr'
  export default {
    name: 'chosepay',
    data () {
      return {
        iswx: false,
        list: [],
        ishow: false,
        isactive: false,
        isfined: false,
        pageindex: 1
      }
    },
    mounted: function () {
      if (Vue.prototype.$payWay === 200) {
        this.iswx = false
      } else {
        this.iswx = true
      }
      this.init()
    },
    watch: {
    },
    methods: {
      init: function () {
        this.getList()
      },
      getList: function () {
        let _this = this
        this.$EcHttpUtils.get('trademark/list.json', {pageSize: 0}).then(function (resp) {
          if (resp.data.statusCode === 0) {
            let list = resp.data.data
            _this.list = list
            _this.ishow = true
          }
        })
      },
      changeEvent: function (index) {
      }
    }
  }
</script>
<style>
	
</style>
